<<<<<<< HEAD
<template>
  <div>
    <!-- ------------------------------第一行-------------------------------- -->
    <el-row>
      <el-col :span="6">
        <el-card shadow="always" body-style="{height:'80px'}">
          <Allsell />
        </el-card>
      </el-col>
      <el-col :span="6">
        <el-card shadow="always">
          <Radarsix />
        </el-card>
      </el-col>
      <el-col :span="6">
        <el-card shadow="always">
          <Radarcircle />
        </el-card>
      </el-col>
      <el-col :span="6">
        <el-card shadow="always">
          <Radartree />
        </el-card>
      </el-col>
    </el-row>
    <!-- ------------------------------第二行-------------------------------- -->
    <el-row>
      <el-card :span="24" class="twohead">
        <template>
          <!-- 时间搜索 -->
          <Timesearch class="timesearch" />
          <el-tabs v-model="activeName" @tab-click="checkBtn">
            <el-tab-pane label="销售额" name="first"> </el-tab-pane>
            <el-tab-pane label="访问量" name="second"> </el-tab-pane>
            <div class="list_card">
              <Linechart ref="linechart" />
              <Cardright />
            </div>
          </el-tabs>
        </template>
      </el-card>
    </el-row>
    <!-- ------------------------------第三行-------------------------------- -->
    <el-row>
      <el-col :span="12">
        <el-card shadow="always">
          <div slot="header" class="clearfix">
            <span style='color:"#97a8be'>线上热门搜索</span>
            <Dropdown style="float: right" />
          </div>
          <Tablez />
        </el-card>
      </el-col>
      <el-col :span="12">
        <el-card shadow="always">
          <Rightbutton />
          <div slot="header" class="clearfix">
            <span style='color:"#97a8be'>销售额类比占比</span>
            <Dropdown style="float: right" />
          </div>
          <Tabley />
        </el-card>
      </el-col>
    </el-row>
    <!-- ------------------------第四行-------------------------------------- -->
    <el-row>
      <el-card>
        <div slot="header" class="clearfix">
          <span style='color:"#97a8be'>周搜索趋势</span>
        </div>
        <Againradartree />
      </el-card>
    </el-row>
  </div>
</template>


<script>
import Radarsix from "./components/radarsix.vue";
import Radarcircle from "./components/radarcircle.vue";
import Radartree from "./components/radartree.vue";
import Timesearch from "./components/timesearch.vue";
import Linechart from "./components/linechart.vue";
import Cardright from "./components/cardright.vue";
import Tablez from "./components/tablez.vue";
import Tabley from "./components/tabley.vue";
import Allsell from "./components/allsell.vue";
import Dropdown from "./components/dropDown.vue";
import Againradartree from "./components/againradartree.vue";
import Rightbutton from "./components/rightbutton.vue";
export default {
  components: {
    Radarsix,
    Radarcircle,
    Radartree,
    Timesearch,
    Linechart,
    Cardright,
    Tablez,
    Tabley,
    Allsell,
    Dropdown,
    Againradartree,
    Rightbutton,
  },
  name: "IndexPage",
  data() {
    return {
      activeName: "first",
    };
  },
  methods: {
    checkBtn(tab) {
      // console.log(tab.index);
      this.$refs.linechart.showIndex = tab.index;
    },
  },
};
</script>

<style scoped lang="less">
.twohead {
  position: relative;
  .timesearch {
    z-index: 2;
    position: absolute;
    right: 20px;
    top: 10px;
  }
  .list_card {
    display: flex;
  }
}

.is-always-shadow {
  margin-top: 10px;
  margin-right: 10px;
}
</style>
=======
>>>>>>> gxd
